package 第五题;

/**
 * @author A18ccms A18ccms_gmail_com
 * @version V1.0
 * @Title:
 * @Package
 * @Description: (用一句话描述该文件做什么)
 * @date
 */

public class putong extends Thread {
    teshu t=new teshu();
    @Override
    public void run() {
        int count=0;
       for(int i=1;i<=50;i++){
           System.out.println("普通号："+i+"号病人在看病");
           count++;
           if(count==10){
               try {
                   t.join();
               } catch (InterruptedException e) {
                   e.printStackTrace();
               }
           }
           try {
               sleep(400);
           } catch (InterruptedException e) {
               e.printStackTrace();
           }
       }
    }
}
